import java.io.File;
import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author https://gitee.com/zhengshengjun
 * @date 2023/11/30.
 */
public class T {
//    public static void main(String[] args) {
//        File file = new File("http://124.70.34.218:19999/assets/logo.e772e82e.svg");
//
//        System.out.println(file.getName());
//    }

    public static void main(String[] args) {
        double value = 11.77478569;
        BigDecimal bigDecimal = new BigDecimal(value);
        BigDecimal bigDecimal1 = bigDecimal.setScale(2, RoundingMode.HALF_UP);
        BigDecimal bigDecimal2 = bigDecimal.setScale(2, RoundingMode.HALF_DOWN);
        BigDecimal bigDecimal3 = bigDecimal.setScale(2, RoundingMode.HALF_EVEN);

        System.out.println(bigDecimal1.doubleValue());
        System.out.println(bigDecimal2.doubleValue());
        System.out.println(bigDecimal3.doubleValue());
    }
}
